<HTML>
<HEAD>
<TITLE>[Chapter 19] Frame</TITLE>
<META NAME="author" CONTENT="John Zukowski">
<META NAME="date" CONTENT="Thu Jul 31 15:12:41 1997">
<META NAME="form" CONTENT="html">
<META NAME="metadata" CONTENT="dublincore.0.1">
<META NAME="objecttype" CONTENT="book part">
<META NAME="otheragent" CONTENT="gmat dbtohtml">
<META NAME="publisher" CONTENT="O'Reilly &amp; Associates, Inc.">
<META NAME="source" CONTENT="SGML">
<META NAME="subject" CONTENT="Java AWT">
<META NAME="title" CONTENT="Java AWT">
<META HTTP-EQUIV="Content-Script-Type" CONTENT="text/javascript">
</HEAD>
<body vlink="#551a8b" alink="#ff0000" text="#000000" bgcolor="#FFFFFF" link="#0000ee">

<DIV CLASS=htmlnav>
<H1><a href='index.htm'><IMG SRC="gifs/smbanner.gif"
     ALT="Java AWT" border=0></a></H1>
<table width=515 border=0 cellpadding=0 cellspacing=0>
<tr>
<td width=172 align=left valign=top><A HREF="ch19_25.htm"><IMG SRC="gifs/txtpreva.gif" ALT="Previous" border=0></A></td>
<td width=171 align=center valign=top><B><FONT FACE="ARIEL,HELVETICA,HELV,SANSERIF" SIZE="-1">Chapter 19<br>java.awt Reference</FONT></B></TD>
<td width=172 align=right valign=top><A HREF="ch19_27.htm"><IMG SRC="gifs/txtnexta.gif" ALT="Next" border=0></A></td>
</tr>
</table>

&nbsp;
<hr align=left width=515>
</DIV>
<DIV CLASS=refnamediv>
<H1>Frame</H1>

<H2>Name</H2>

Frame

</DIV>

<DIV CLASS=refsect1>
<h2 CLASS=refsect1><A CLASS="TITLE" NAME="ch19-REFSECT1-AUTOID.26"></A></h2>
</DIV>


<p>
<img align=middle src="./figs/frame.gif" alt="[Graphic: Figure from the text]" width=502 height=92 border=0>

</DIV>

<DIV CLASS=refsect1>
<h2 CLASS=refsect1><A CLASS="TITLE" NAME="JAWT-CH-19-REF-FRAME-SECT-1">Description</A></h2>

<P CLASS=para>
The <tt CLASS=literal>Frame</tt> class is a special 
type of <tt CLASS=literal>Window</tt> that will appear 
like other high-level programs in your windowing environment. It adds a 
<tt CLASS=literal>MenuBar</tt>, window title, and 
window gadgets (like resize, maximize, minimize, window menu) to the basic 
<tt CLASS=literal>Window</tt> object. Frames are initially 
invisible; call <tt CLASS=literal>show()</tt> to display 
them. Frames may also be associated with an <tt CLASS=literal>Image</tt> 
to be used as an icon. The <tt CLASS=literal>Frame</tt> 
class includes many constants to represent different cursor styles. All 
styles aren't necessarily available on any platform. In 1.1, these 
constants are defined in <tt CLASS=literal>java.awt.Cursor</tt>. 

</DIV>

<DIV CLASS=refsect1>
<h2 CLASS=refsect1><A CLASS="TITLE" NAME="JAWT-CH-19-REF-FRAME-SECT-2">Class Definition</A></h2>

<DIV CLASS=screen>
<P>
<PRE>
public class java.awt.Frame
    extends java.awt.Window
    implements java.awt.MenuContainer {
  
  // Constants
  public final static int CROSSHAIR_CURSOR;
  public final static int DEFAULT_CURSOR;
  public final static int E_RESIZE_CURSOR;
  public final static int HAND_CURSOR;
  public final static int MOVE_CURSOR;
  public final static int N_RESIZE_CURSOR;
  public final static int NE_RESIZE_CURSOR;
  public final static int NW_RESIZE_CURSOR;
  public final static int S_RESIZE_CURSOR;
  public final static int SE_RESIZE_CURSOR;
  public final static int SW_RESIZE_CURSOR;
  public final static int TEXT_CURSOR;
  public final static int W_RESIZE_CURSOR;
  public final static int WAIT_CURSOR;
  
  // Constructors
  public Frame();
  public Frame (String title);
  
  // Instance Methods
  public void addNotify();
  public synchronized void dispose();
  public int getCursorType(); <img src="gifs/wstar.gif" alt="(Deprecated)" border=0>
  public Image getIconImage();
  public MenuBar getMenuBar();
  public String getTitle();
  public boolean isResizable();
  public synchronized void remove (MenuComponent component);
  public synchronized void setCursor (int cursorType); <img src="gifs/wstar.gif" alt="(Deprecated)" border=0>
  public synchronized void setIconImage (Image image);
  public synchronized void setMenuBar (MenuBar bar);
  public synchronized void setResizable (boolean resizable);
  public synchronized void setTitle (String title);
  
  // Protected Instance Methods
  protected String paramString();
}
</PRE>
</DIV>

</DIV>

<DIV CLASS=refsect1>
<h2 CLASS=refsect1><A CLASS="TITLE" NAME="JAWT-CH-19-REF-FRAME-SECT-3">Constants</A></h2>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-FRAME-SECT-3.1">CROSSHAIR_CURSOR</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-FRAME-SECT-3.1.1">public final static int CROSSHAIR_CURSOR</A></h4>

<P CLASS=para>
Constant representing a cursor that looks like a crosshair. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-FRAME-SECT-3.2">DEFAULT_CURSOR</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-FRAME-SECT-3.2.1">public final static int DEFAULT_CURSOR</A></h4>

<P CLASS=para>
Constant representing the platform's default cursor. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-FRAME-SECT-3.3">E_RESIZE_CURSOR</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-FRAME-SECT-3.3.1">public final static int E_RESIZE_CURSOR</A></h4>

<P CLASS=para>
Constant representing the cursor for resizing an object on the left. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-FRAME-SECT-3.4">HAND_CURSOR</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-FRAME-SECT-3.4.1">public final static int HAND_CURSOR</A></h4>

<P CLASS=para>
Constant representing a cursor that looks like a hand. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-FRAME-SECT-3.5">MOVE_CURSOR</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-FRAME-SECT-3.5.1">public final static int MOVE_CURSOR</A></h4>

<P CLASS=para>
Constant representing a cursor used to move an object. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-FRAME-SECT-3.6">N_RESIZE_CURSOR</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-FRAME-SECT-3.6.1">public final static int N_RESIZE_CURSOR</A></h4>

<P CLASS=para>
Constant representing a cursor for resizing an object on the top. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-FRAME-SECT-3.7">NE_RESIZE_CURSOR</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-FRAME-SECT-3.7.1">public final static int NE_RESIZE_CURSOR</A></h4>

<P CLASS=para>
Constant representing a cursor for resizing an object on the top left corner. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-FRAME-SECT-3.8">NW_RESIZE_CURSOR</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-FRAME-SECT-3.8.1">public final static int NW_RESIZE_CURSOR</A></h4>

<P CLASS=para>
Constant representing a cursor for resizing an object on the top right 
corner. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-FRAME-SECT-3.9">S_RESIZE_CURSOR</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-FRAME-SECT-3.9.1">public final static int S_RESIZE_CURSOR</A></h4>

<P CLASS=para>
Constant representing a cursor for resizing an object on the bottom. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-FRAME-SECT-3.10">SE_RESIZE_CURSOR</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-FRAME-SECT-3.10.1">public final static int SE_RESIZE_CURSOR</A></h4>

<P CLASS=para>
Constant representing a cursor for resizing an object on the bottom left 
corner. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-FRAME-SECT-3.11">SW_RESIZE_CURSOR</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-FRAME-SECT-3.11.1">public final static int SW_RESIZE_CURSOR</A></h4>

<P CLASS=para>
Constant representing a cursor for resizing an object on the bottom right 
corner. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-FRAME-SECT-3.12">TEXT_CURSOR</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-FRAME-SECT-3.12.1">public final static int TEXT_CURSOR</A></h4>

<P CLASS=para>
Constant representing a cursor used within text. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-FRAME-SECT-3.13">W_RESIZE_CURSOR</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-FRAME-SECT-3.13.1">public final static int W_RESIZE_CURSOR</A></h4>

<P CLASS=para>
Constant representing a cursor for resizing an object on the right side. 

</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-FRAME-SECT-3.14">WAIT_CURSOR</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-FRAME-SECT-3.14.1">public final static int WAIT_CURSOR</A></h4>

<P CLASS=para>
Constant representing a cursor that indicates the program is busy. 

</DIV>

</DIV>

</DIV>

<DIV CLASS=refsect1>
<h2 CLASS=refsect1><A CLASS="TITLE" NAME="JAWT-CH-19-REF-FRAME-SECT-4">Constructors</A></h2>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-FRAME-SECT-4.1">Frame</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-FRAME-SECT-4.1.1">public Frame()</A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Description<br>
<DD>

<P CLASS=para>
Constructs a <tt CLASS=literal>Frame</tt> object, 
with no title. </DL>
</DIV>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-FRAME-SECT-4.1.2">public Frame (String title)</A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Parameters<br>
<DD>

<P>
<DL CLASS=variablelist>
<DT CLASS=varlistentry><I CLASS=emphasis>title</I><br>
<DD>

<P CLASS=para>
Initial title to use for <tt CLASS=literal>Frame</tt>.</DL>
<p>
<DT CLASS=varlistentry>Description<br>
<DD>

<P CLASS=para>
Constructs a <tt CLASS=literal>Frame</tt> object, 
with the given title. </DL>
</DIV>

</DIV>

</DIV>

<DIV CLASS=refsect1>
<h2 CLASS=refsect1><A CLASS="TITLE" NAME="JAWT-CH-19-REF-FRAME-SECT-5">Instance Methods</A></h2>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-FRAME-SECT-5.1">addNotify</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-FRAME-SECT-5.1.1">public void addNotify()</A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Overrides <br>
<DD>

<P CLASS=para>
<tt CLASS=literal>Window.addNotify()</tt> 

<p>
<DT CLASS=varlistentry>Description<br>
<DD>

<P CLASS=para>
Creates <tt CLASS=literal>Frame</tt>'s peer 
and peers of contained components. </DL>
</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-FRAME-SECT-5.3">dispose</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-FRAME-SECT-5.3.1">public synchronized void dispose()</A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Overrides <br>
<DD>

<P CLASS=para>
<tt CLASS=literal>Window.dispose()</tt> 

<p>
<DT CLASS=varlistentry>Description<br>
<DD>

<P CLASS=para>
Releases the resources of the <tt CLASS=literal>Frame</tt>. </DL>
</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-FRAME-SECT-5.4">getCursorType</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-FRAME-SECT-5.4.1">public int getCursorType() <img src="gifs/wstar.gif" alt="(Deprecated)" border=0></A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Returns<br>
<DD>

<P CLASS=para>
The constant for the current cursor. Replaced by <tt CLASS=literal>Component.getCursor()</tt> </DL>
</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-FRAME-SECT-5.5">getIconImage</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-FRAME-SECT-5.5.1">public Image getIconImage()</A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Returns<br>
<DD>

<P CLASS=para>
The image used as the icon, or <tt CLASS=literal>null</tt> 
if there is no icon for this frame. </DL>
</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-FRAME-SECT-5.6">getMenuBar</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-FRAME-SECT-5.6.1">public MenuBar getMenuBar()</A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Returns<br>
<DD>

<P CLASS=para>
The <tt CLASS=literal>Frame</tt>'s current menu 
bar, or <tt CLASS=literal>null</tt> if there is no 
menu bar for this frame. </DL>
</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-FRAME-SECT-5.7">getTitle</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-FRAME-SECT-5.7.1">public String getTitle()</A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Returns<br>
<DD>

<P CLASS=para>
The current title for the <tt CLASS=literal>Frame</tt>, 
or <tt CLASS=literal>null</tt> if there is no title 
for this frame. </DL>
</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-FRAME-SECT-5.8">isResizable</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-FRAME-SECT-5.8.1">public boolean isResizable()</A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Returns<br>
<DD>

<P CLASS=para>
<tt CLASS=literal>true</tt> if resizable, <tt CLASS=literal>false</tt> 
otherwise. </DL>
</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-FRAME-SECT-5.9">remove</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-FRAME-SECT-5.9.1">public synchronized void remove (MenuComponent component)</A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Parameters<br>
<DD>

<P>
<DL CLASS=variablelist>
<DT CLASS=varlistentry><I CLASS=emphasis>component</I><br>
<DD>

<P CLASS=para>
<tt CLASS=literal>MenuBar</tt> to 
remove from <tt CLASS=literal>Frame</tt>. </DL>
<p>
<DT CLASS=varlistentry>Implements <br>
<DD>

<P CLASS=para>
<tt CLASS=literal>MenuContainer.remove()</tt> 

<p>
<DT CLASS=varlistentry>Description<br>
<DD>

<P CLASS=para>
Removes <tt CLASS=literal>component</tt> from <tt CLASS=literal>Frame</tt> 
if <tt CLASS=literal>component</tt> is the <tt CLASS=literal>Frame</tt>'s 
menu bar. </DL>
</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-FRAME-SECT-5.11">setCursor</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-FRAME-SECT-5.11.1">public synchronized void setCursor (int cursorType) <img src="gifs/wstar.gif" alt="(Deprecated)" border=0></A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Parameters<br>
<DD>

<P>
<DL CLASS=variablelist>
<DT CLASS=varlistentry><I CLASS=emphasis>cursorType</I><br>
<DD>

<P CLASS=para>
One of <tt CLASS=literal>Frame</tt>'s 
cursor constants. </DL>
<p>
<DT CLASS=varlistentry>Throws<br>
<DD>

<P>
<DL CLASS=variablelist>
<DT CLASS=varlistentry><I CLASS=emphasis>IllegalArgumentException</I><br>
<DD>

<P CLASS=para>
If 
<tt CLASS=literal>cursorType</tt> invalid. </DL>
<p>
<DT CLASS=varlistentry>Description<br>
<DD>

<P CLASS=para>
Changes the cursor of the <tt CLASS=literal>Frame</tt>. 
Replaced by <tt CLASS=literal>Component.setCursor(Cursor)</tt>. </DL>
</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-FRAME-SECT-5.12">setIconImage</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-FRAME-SECT-5.12.1">public synchronized void setIconImage (Image image)</A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Parameters<br>
<DD>

<P>
<DL CLASS=variablelist>
<DT CLASS=varlistentry><I CLASS=emphasis>image</I><br>
<DD>

<P CLASS=para>
New image to use for the <tt CLASS=literal>Frame</tt>'s 
icon. </DL>
<p>
<DT CLASS=varlistentry>Description<br>
<DD>

<P CLASS=para>
Changes the icon's image for the <tt CLASS=literal>Frame</tt>. </DL>
</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-FRAME-SECT-5.13">setMenuBar</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-FRAME-SECT-5.13.1">public synchronized void setMenuBar (MenuBar bar)</A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Parameters<br>
<DD>

<P>
<DL CLASS=variablelist>
<DT CLASS=varlistentry><I CLASS=emphasis>bar</I><br>
<DD>

<P CLASS=para>
New <tt CLASS=literal>MenuBar</tt> 
to use for the <tt CLASS=literal>Frame</tt>. </DL>
<p>
<DT CLASS=varlistentry>Description<br>
<DD>

<P CLASS=para>
Changes the menu bar of the <tt CLASS=literal>Frame</tt>. </DL>
</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-FRAME-SECT-5.14">setResizable</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-FRAME-SECT-5.14.1">public synchronized void setResizable (boolean resizable)</A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Parameters<br>
<DD>

<P>
<DL CLASS=variablelist>
<DT CLASS=varlistentry><I CLASS=emphasis>resizable</I><br>
<DD>

<P CLASS=para>
<tt CLASS=literal>true</tt> to make 
the frame resizable, <tt CLASS=literal>false</tt> 
to prevent resizing. </DL>
<p>
<DT CLASS=varlistentry>Description<br>
<DD>

<P CLASS=para>
Changes the resize state of the <tt CLASS=literal>Frame</tt>. </DL>
</DIV>

</DIV>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-FRAME-SECT-5.15">setTitle</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-FRAME-SECT-5.15.1">public synchronized void setTitle (String title)</A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Parameters<br>
<DD>

<P>
<DL CLASS=variablelist>
<DT CLASS=varlistentry><I CLASS=emphasis>title</I><br>
<DD>

<P CLASS=para>
New title to use for the <tt CLASS=literal>Frame</tt>. </DL>
<p>
<DT CLASS=varlistentry>Description<br>
<DD>

<P CLASS=para>
Changes the title of the <tt CLASS=literal>Frame</tt>. </DL>
</DIV>

</DIV>

</DIV>

<DIV CLASS=refsect1>
<h2 CLASS=refsect1><A CLASS="TITLE" NAME="JAWT-CH-19-REF-FRAME-SECT-6">Protected Instance Methods</A></h2>

<DIV CLASS=refsect2>
<h3 CLASS=refsect2><A CLASS="TITLE" NAME="JAWT-CH-19-REF-FRAME-SECT-6.1">paramString</A></h3>

<DIV CLASS=refsect3>
<h4 CLASS=refsect3><A CLASS="TITLE" NAME="JAWT-CH-19-REF-FRAME-SECT-6.1.1">protected String paramString()</A></h4>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Returns<br>
<DD>

<P CLASS=para>
String with current settings of <tt CLASS=literal>Frame</tt>. 

<p>
<DT CLASS=varlistentry>Overrides<br>
<DD>

<P CLASS=para>
<tt CLASS=literal>Container.paramString()</tt> 

<p>
<DT CLASS=varlistentry>Description<br>
<DD>

<P CLASS=para>
Helper method for <tt CLASS=literal>toString()</tt> 
to generate a string of current settings. </DL>
</DIV>

</DIV>

</DIV>

<DIV CLASS=refsect1>
<h2 CLASS=refsect1><A CLASS="TITLE" NAME="JAWT-CH-19-REF-FRAME-SECT-7">See Also</A></h2>

<P CLASS=para>
<tt CLASS=literal>Container</tt>, <tt CLASS=literal>Image</tt>, 
<tt CLASS=literal>MenuBar</tt>, <tt CLASS=literal>MenuContainer</tt>, 
<tt CLASS=literal>String</tt>, <tt CLASS=literal>Window</tt> 

</DIV>


<DIV CLASS=htmlnav>

<P>
<HR align=left width=515>
<table width=515 border=0 cellpadding=0 cellspacing=0>
<tr>
<td width=172 align=left valign=top><A HREF="ch19_25.htm"><IMG SRC="gifs/txtpreva.gif" ALT="Previous" border=0></A></td>
<td width=171 align=center valign=top><a href="index.htm"><img src='gifs/txthome.gif' border=0 alt='Home'></a></td>
<td width=172 align=right valign=top><A HREF="ch19_27.htm"><IMG SRC="gifs/txtnexta.gif" ALT="Next" border=0></A></td>
</tr>
<tr>
<td width=172 align=left valign=top>FontMetrics</td>
<td width=171 align=center valign=top><a href="index/idx_a.htm"><img src='gifs/index.gif' alt='Book Index' border=0></a></td>
<td width=172 align=right valign=top>Graphics</td>
</tr>
</table>
<hr align=left width=515>

<IMG SRC="gifs/smnavbar.gif" USEMAP="#map" BORDER=0> 
<MAP NAME="map"> 
<AREA SHAPE=RECT COORDS="0,0,108,15" HREF="../javanut/index.htm"
alt="Java in a Nutshell"> 
<AREA SHAPE=RECT COORDS="109,0,200,15" HREF="../langref/index.htm" 
alt="Java Language Reference"> 
<AREA SHAPE=RECT COORDS="203,0,290,15" HREF="../awt/index.htm" 
alt="Java AWT"> 
<AREA SHAPE=RECT COORDS="291,0,419,15" HREF="../fclass/index.htm" 
alt="Java Fundamental Classes"> 
<AREA SHAPE=RECT COORDS="421,0,514,15" HREF="../exp/index.htm" 
alt="Exploring Java"> 
</MAP>
</DIV>

</BODY>
</HTML>
